package com.groupbuying.orderproducer.service.impl;

import com.groupbuying.orderproducer.utils.apiresult.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.groupbuying.orderproducer.dao.CommodityOrderMainDao;
import com.groupbuying.orderproducer.domain.CommodityOrderMainDO;
import com.groupbuying.orderproducer.service.CommodityOrderMainService;



@Service
public class CommodityOrderMainServiceImpl implements CommodityOrderMainService {
	@Autowired
	private CommodityOrderMainDao commodityOrderMainDao;
	
	@Override
	public CommodityOrderMainDO get(String id){
		return commodityOrderMainDao.get(id);
	}
	
	@Override
	public List<CommodityOrderMainDO> list(Map<String, Object> map){
		return commodityOrderMainDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return commodityOrderMainDao.count(map);
	}
	
	@Override
	public int save(CommodityOrderMainDO commodityOrderMain){
		return commodityOrderMainDao.save(commodityOrderMain);
	}
	
	@Override
	public int update(CommodityOrderMainDO commodityOrderMain){
		return commodityOrderMainDao.update(commodityOrderMain);
	}
	
	@Override
	public int remove(String id){
		return commodityOrderMainDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return commodityOrderMainDao.batchRemove(ids);
	}

	@Override
	public ApiResult createOrder(Map<String, Object> params) {
		return null;
	}

}
